﻿using UnityEngine;
using System.Collections;

public class cameraFollow : MonoBehaviour {
	public float currentHeight;
	public Transform target;
	// Use this for initialization
	void Start () {
	
	 transform.LookAt(target);
		
	}
	
	// Update is called once per frame
	void Update () {

		Camera.main.transform.position = target.transform.position;
				transform.position = new Vector3(transform.position.x,currentHeight,transform.position.z);
	}
}
